Warn about missing license/description in `cargo package`.
authorHuon Wilson <dbau.pp+github@gmail.com>
Tue, 18 Nov 2014 12:23:53 +0000 (23:23 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Wed, 19 Nov 2014 02:17:59 +0000 (13:17 +1100)
commit5db1316a6b60770867a09750f85ec31ce5b9da68
treeb8fe7de9a129c7d7d8921badd57248af0f9e6ba4
parent36be0451c406b84ae1e3aefa5deb7715e7d42a43
Warn about missing license/description in `cargo package`.

It's very bad practice to not have a license in a
published (theoretically) open-source package, since the default
position is all-rights-reserved. Hence, cargo will now warn if this
metadata field is missing from the manifest when creating a package.

Similarly, a lack of description makes using crates.io less nice, since
there's no indication of what a package does other than the name (and
possibly documentation etc. links, but these are often missing too).

These metadata fields are not immediately obvious so `cargo` can be a
little intelligent and provide some hints that they exist.

Closes #902.
src/bin/package.rs
src/cargo/ops/cargo_package.rs
src/cargo/ops/registry.rs
src/doc/manifest.md
tests/support/mod.rs
tests/test_cargo_package.rs
tests/test_cargo_publish.rs
tests/test_cargo_registry.rs